1: | from(X) | → cons(X,n__from(n__s(X))) | |
2: | sel(0,cons(X,Y)) | → X | |
3: | sel(s(X),cons(Y,Z)) | → sel(X,activate(Z)) | |
4: | from(X) | → n__from(X) | |
5: | s(X) | → n__s(X) | |
6: | activate(n__from(X)) | → from(activate(X)) | |
7: | activate(n__s(X)) | → s(activate(X)) | |
8: | activate(X) | → X | |
9: | SEL(s(X),cons(Y,Z)) | → SEL(X,activate(Z)) | |
10: | SEL(s(X),cons(Y,Z)) | → ACTIVATE(Z) | |
11: | ACTIVATE(n__from(X)) | → FROM(activate(X)) | |
12: | ACTIVATE(n__from(X)) | → ACTIVATE(X) | |
13: | ACTIVATE(n__s(X)) | → S(activate(X)) | |
14: | ACTIVATE(n__s(X)) | → ACTIVATE(X) | |